package com.zhiming.common.exception.pojo;

import lombok.Getter;

/**
 * 自定义异常对象
 */
@Getter
public class ZmException extends RuntimeException{
    private Integer status;

    public ZmException(Integer status,String message){
        super(message);
        this.status = status;
    }

    public ZmException(ExceptionEnum exceptionEnum){
        super((exceptionEnum.getMessage()));
        this.status = exceptionEnum.getStatus();
    }
}
